package com.moli.iov.handle.real.model;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;

@Data
public class RealTimeReqDto implements Serializable {

    private String vin;

    private List<String> vins;

    public RealTimeReqDto put(List<String> vins){
        this.vins = vins;
        return this;
    }

    public RealTimeReqDto put(Set<String> vins){
        if(vins!=null){
            this.vins = new ArrayList<>(vins);
        }
        return this;
    }

}
